|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Agent
negotiator.boaframework.agent.BOAagent
public abstract class BOAagent
This class describes a basic decoupled agent. The TheBOAagent class extends this class and sets the required parameters.
| Field Summary | |
|---|---|
protected AcceptanceStrategy |
acceptConditions
when to accept |
protected NegotiationSession |
negotiationSession
link to domain |
protected OfferingStrategy |
offeringStrategy
what to offer |
protected OMStrategy |
omStrategy
which bid to select using an opponent model |
protected OpponentModel |
opponentModel
used to determine the utility of a bid for the opponent |
protected OutcomeSpace |
outcomeSpace
space of possible bids |
java.util.ArrayList<Pair<Bid,java.lang.String>> |
savedOutcomes
used to store MAC outcomes |
| Fields inherited from class negotiator.Agent |
|---|
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace |
| Constructor Summary | |
|---|---|
BOAagent()
|
|
| Method Summary | |
|---|---|
abstract void |
agentSetup()
Method used to setup the agent. |
Action |
chooseAction()
Choose an action to perform. |
void |
cleanUp()
Clear the agent's variables. |
void |
endSession(NegotiationResult result)
Method that first calls the endSession method of each component to update the session data and then stores the session data if it is not empty and is changed. |
AcceptanceStrategy |
getAcceptanceStrategy()
Returns the acceptance strategy of the agent. |
abstract java.lang.String |
getName()
|
OfferingStrategy |
getOfferingStrategy()
Returns the offering strategy of the agent. |
OpponentModel |
getOpponentModel()
Returns the opponent model of the agent. |
protected java.lang.String |
getUniqueIdentifier()
Unique identifier for the BOA agent. |
static java.lang.String |
getVersion()
|
void |
init()
Initializes the agent and creates a new negotiation session object. |
void |
ReceiveMessage(Action opponentAction)
Store the actions made by a partner. |
void |
setDecoupledComponents(AcceptanceStrategy ac,
OfferingStrategy os,
OpponentModel om,
OMStrategy oms)
Set the components of the decoupled agent. |
| Methods inherited from class negotiator.Agent |
|---|
getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AcceptanceStrategy acceptConditions
protected OfferingStrategy offeringStrategy
protected OpponentModel opponentModel
protected NegotiationSession negotiationSession
protected OMStrategy omStrategy
public java.util.ArrayList<Pair<Bid,java.lang.String>> savedOutcomes
protected OutcomeSpace outcomeSpace
| Constructor Detail |
|---|
public BOAagent()
| Method Detail |
|---|
public void init()
init in class Agentpublic abstract void agentSetup()
public void setDecoupledComponents(AcceptanceStrategy ac,
OfferingStrategy os,
OpponentModel om,
OMStrategy oms)
ac - the acceptance strategyos - the offering strategyom - the opponent modeloms - the opponent model strategyprotected java.lang.String getUniqueIdentifier()
getUniqueIdentifier in class Agentpublic static java.lang.String getVersion()
public abstract java.lang.String getName()
getName in class Agentpublic void ReceiveMessage(Action opponentAction)
ReceiveMessage in class AgentopponentAction - by opponent in current turnpublic Action chooseAction()
chooseAction in class Agentpublic OfferingStrategy getOfferingStrategy()
public OpponentModel getOpponentModel()
public AcceptanceStrategy getAcceptanceStrategy()
public void endSession(NegotiationResult result)
endSession in class Agentresult - discounted utility of previous session round.public void cleanUp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||